package com.niguang.work.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 12380
 * @since 2018-10-21
 */
@TableName("monitor_event_log")
public class MonitorEventLog extends Model<MonitorEventLog> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 工地id
     */
    @TableField("site_id")
    private Long siteId;
    /**
     * 设备id
     */
    @TableField("device_id")
    private String deviceId;
    /**
     * 事件类型
     */
    @TableField("event_type")
    private Integer eventType;
    /**
     * 视频截图(人脸之类的)
     */
    @TableField("image_url")
    private String imageUrl;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getEventType() {
        return eventType;
    }

    public void setEventType(Integer eventType) {
        this.eventType = eventType;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public static final String ID = "id";

    public static final String SITE_ID = "site_id";

    public static final String DEVICE_ID = "device_id";

    public static final String EVENT_TYPE = "event_type";

    public static final String IMAGE_URL = "image_url";

    public static final String CREATE_TIME = "create_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MonitorEventLog{" +
        "id=" + id +
        ", siteId=" + siteId +
        ", deviceId=" + deviceId +
        ", eventType=" + eventType +
        ", imageUrl=" + imageUrl +
        ", createTime=" + createTime +
        "}";
    }
}
